package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 数据字典-活动状态
 *
 * @author  chunyang.qin
 * @version v1.0
 * @date 2020/11/9 10:19
 * @since v1.0
 */
@Getter
public enum MarketActivityStatusEnum {

    //已计划
    PLANNED("1", "enum.marketActivityStatus.name.planned", "planned"),
    //进行中
    ONGOING("2", "enum.marketActivityStatus.name.ongoing", "ongoing"),
    //已结束
    ENDED("3", "enum.marketActivityStatus.name.ended", "ended"),
    //中止
    SUSPEND("4", "enum.marketActivityStatus.name.suspend", "suspend"),
    ;
    private String code;
    private String name;
    private String attr;

    MarketActivityStatusEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
